-- GENERATED SPELL FOR [Turgid the Vile] --


function spell0_27808(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27808', 1000, 1)
end

function spell1_27808(pUnit, Event) --@Vile Vomit,n/a--
pUnit:FullCastSpellOnTarget(51356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27808', 8000, 1)
end

function Sorts_27808(pUnit, Event)
local choix_sorts_27808 = math.random(0, 1)
if choix_sorts_27808 == 0 then
pUnit:RegisterEvent('spell0_27808', 1, 1)
end
if choix_sorts_27808 == 1 then
pUnit:RegisterEvent('spell1_27808', 1, 1)
end
end

function mob27808_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27808', math.random(1500, 3000), 1)
end

function mob27808_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27808_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27808_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27808, 1, 'mob27808_Action')
RegisterUnitEvent(27808, 2, 'mob27808_Leave')
RegisterUnitEvent(27808, 3, 'mob27808_Kill')
RegisterUnitEvent(27808, 4, 'mob27808_Die')
